import request from "@/utils/request";

const productReviewAPI = {
  /**
   * 查询产品质量溯源信息
   *
   * @param queryParams 查询参数
   */
  getProductQualityTrace(productName: string, prodCode: string) {
    // let query = encodeURIComponent(JSON.stringify({ ...queryParams }));
    // console.log(query);
    return request<any, PageResult<Tabulation[]>>({
      url: `/core/productQualityTrace/getProductQualityTrace?productName=${productName}&prodCode=${prodCode}`,
      method: "get",
    });
  },
};
export default productReviewAPI;
/** 登录用户信息 */
export interface Inquire {
  productName?: string; //产品名称
  prodCode?: string; //生产单编号
}
export interface Tabulation {
  code?: string; //生产批次号
  productName?: string; //产品名称
  productCode?: string; //产品编号
  materialName?: string; //原材料名称
  materialCode?: string; //原材料编号
}
